package com.example.j20240321.demos.web.facade;

public class LightFacade {
    LivingRoomLight livingRoomLight = new LivingRoomLight();
    BedRoomLight bedRoomLight = new BedRoomLight();
    HallLight hallLight = new HallLight();
    void on(){
        //这个仅仅是一个门面，
        livingRoomLight.on();
        bedRoomLight.on();
        hallLight.on();
    }

    void off(){
        livingRoomLight.off();
        bedRoomLight.off();;
        hallLight.off();
    }
}
